﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Cansu cansu = new Cansu();
            int i = 10;
            cansu.JudgeSomething(ref i);
            cansu.Judge(i,out bool b);

            Console.WriteLine(b);
        }

    }
    class Cansu
    {
        public bool JudgeSomething(ref int num1)
        {
            if (num1 % 5==0)
            {
                return true;
            }
            return false;
        }

        public void Judge(int num, out bool result)
        {
            if (num % 5 == 0)
            {
                result = true;
            }
            else
            {
                result = false;
            }
        }
    }
}
